import { baseUrlConfig } from '@/config/config';
import request from '@/utils/request'

const bastPath = baseUrlConfig.processBaseUrl
export const scheduleClassAdd = (data: any) => {
    return request({
        url: bastPath + '/quality/scheduleClass/add',
        method: 'put',
        data
    })
}
//编辑班次
export const scheduleClassEdit = (data: any) => {
    return request({
        url: bastPath + '/quality/scheduleClass/update',
        method: 'patch',
        data
    })
}
//删除班次
export const scheduleClassDel = (data: any) => {
    return request({
        url: bastPath + '/quality/scheduleClass/delete?id='+data,
        method: 'get',
    })
}
//班次分页查询
export const getScheduleClassList = (data: any) => {
    return request({
        url: bastPath + '/quality/scheduleClass/find/page',
        method: 'post',
        data
    })
}
